//
//  FeedBackTextField.m
//  鼎立华服
//
//  Created by 中企互联 on 2017/12/8.
//  Copyright © 2017年 中企互联. All rights reserved.
//

#import "FeedBackTextField.h"

@implementation FeedBackTextField

//修改placeHolder的位置
- (CGRect)placeholderRectForBounds:(CGRect)bounds {
    CGRect inset = CGRectMake(bounds.origin.x + SYRealValue(20 / 2), bounds.origin.y, bounds.size.width - SYRealValue(60 / 2), bounds.size.height);
    return inset;
}

//修改编辑位置
- (CGRect)editingRectForBounds:(CGRect)bounds {
    CGRect inset = CGRectMake(bounds.origin.x + SYRealValue(20 / 2), bounds.origin.y, bounds.size.width - SYRealValue(60 / 2), bounds.size.height);
    return inset;
}

//修改文字显示位置
- (CGRect)textRectForBounds:(CGRect)bounds {
    CGRect inset = CGRectMake(bounds.origin.x + SYRealValue(20 / 2), bounds.origin.y, bounds.size.width - SYRealValue(60 / 2), bounds.size.height);
    return inset;
}

@end
